﻿using SS.WPF.Framework.Display.Dialog;

namespace SS.WPF.Framework.ViewModel.Screen
{
    /// <summary>
    /// The abstract class that is used to provide functions for Dialog view
    /// </summary>
    public abstract class DialogViewModelBase: ViewModelBase, IDialog
    {
        #region Implementations of IDialog

        public void SetDialogResult(bool? result)
        {
            this.TryClose(result);
        }

        #endregion
    }
}
